home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / TK-USRNF.ZIP / USERNFO.PPE (.txt) < prev   
PCBoard Programming Language Executable  |  1996-04-03  |  4KB  |  270 lines

  1. ;------------------------------------------------------------------------------
  2. ;                                                   .ss.
  3. ;                                                   `²²'
  4. ;             .,sS$Ss,,s$  .,sS$$$Ss.  .,sS$Ss,,s$ .ss.  .sSs.
  5. ;           .d$$²^°²$$$$'.d$P²°^^²$P'.d$$²^°²$$$$'.$$$' .$$$²Sb,.
  6. ;           $$$'   .$$$' $$$²Sçsµ²' .$$$'   .$$$'.$$$' .$$$'  `$$b.
  7. ;           $$$b,,d$$$' ,$$$b,....,s$$$$b,,d$$$'.$$$;.,$$$'    ;$$$
  8. ;           `²S$$S²²S$$S²°²S$$$$S²°°²S$$$$$$',$$S²°²S$S'.sS$$$P²'
  9. ;                                    .sS²°$$$²²°"'       d²°'
  10. ;                                  .$$²  .$$'
  11. ;                                  $$$.,d$$'
  12. ;                                  `²S$$S²'
  13. ;------------------------------------------------------------------------------
  14. ; P.P.L.X. 2.OO                          (C)1996 - Lone Runner / AEGiS CoRP'96 
  15. ;------------------------------------------------------------------------------
  16. ; PPE 3.1O (Encryption type I) - Analysis ON - Postprocessing ON
  17. ;------------------------------------------------------------------------------
  18.  
  19.     String   STRING008
  20.     String   STRING009
  21.  
  22. ;------------------------------------------------------------------------------
  23.  
  24.     Cls
  25.     DispFile PPEPath() + "USERNFO.PCB", 0
  26.     GetUser
  27.     Color 5
  28.     AnsiPos 21, 5
  29.     Print U_Pwd
  30.     AnsiPos 21, 6
  31.     Print U_City
  32.     AnsiPos 21, 7
  33.     Print U_BDPhone
  34.     AnsiPos 21, 8
  35.     Print U_HVPhone
  36.     AnsiPos 21, 9
  37.     If (U_Cls == 0) Print "N"
  38.     If (U_Cls == 1) Print "Y"
  39.     AnsiPos 21, 10
  40.     Print U_Addr(0)
  41.     AnsiPos 21, 11
  42.     Print U_Addr(1)
  43.     AnsiPos 21, 12
  44.     Print U_Addr(2)
  45.     AnsiPos 21, 13
  46.     Print U_Addr(3)
  47.     AnsiPos 21, 14
  48.     Print U_Addr(4)
  49.     AnsiPos 21, 15
  50.     Print U_Addr(5)
  51.     AnsiPos 21, 16
  52.     Print U_Ver
  53.     AnsiPos 21, 17
  54.     If (U_Expert == 0) Print "N"
  55.     If (U_Expert == 1) Print "Y"
  56.     AnsiPos 21, 18
  57.     Print U_Trans
  58.     STRING008 = ""
  59.     :LABEL001
  60.     If (STRING008 == Chr(27)) Goto LABEL004
  61.     AnsiPos 75, 20
  62.     STRING008 = ""
  63.     While (STRING008 == "") Do
  64.         STRING008 = Inkey()
  65.     EndWhile
  66.     STRING008 = Upper(STRING008)
  67.     STRING009 = ""
  68.     If (STRING008 == "A") Then
  69.         AnsiPos 21, 5
  70.         KbdStuff U_Pwd
  71.         InputStr "_", STRING009, 5, 12, Mask_Ascii(), 0
  72.         U_Pwd = Upper(STRING009)
  73.         AnsiPos 21, 5
  74.         Print "@X08............"
  75.         AnsiPos 21, 5
  76.         Print "@X05" + U_Pwd
  77.     Endif
  78.     If (STRING008 == "B") Then
  79.         AnsiPos 21, 6
  80.         KbdStuff U_City
  81.         InputStr "_", STRING009, 5, 24, Mask_Ascii(), 0
  82.         U_City = Upper(STRING009)
  83.         AnsiPos 21, 6
  84.         Print "@X08........................"
  85.         AnsiPos 21, 6
  86.         Print "@X05" + U_City
  87.     Endif
  88.     If (STRING008 == "C") Then
  89.         AnsiPos 21, 7
  90.         KbdStuff U_BDPhone
  91.         InputStr "_", STRING009, 5, 13, "0123456789-()", 0
  92.         U_BDPhone = STRING009
  93.         AnsiPos 21, 7
  94.         Print "@X08............."
  95.         AnsiPos 21, 7
  96.         Print "@X05" + U_BDPhone
  97.     Endif
  98.     If (STRING008 == "D") Then
  99.         AnsiPos 21, 8
  100.         KbdStuff U_HVPhone
  101.         InputStr "_", STRING009, 5, 13, "0123456789-()", 0
  102.         U_HVPhone = STRING009
  103.         AnsiPos 21, 8
  104.         Print "@X08............."
  105.         AnsiPos 21, 8
  106.         Print "@X05" + U_HVPhone
  107.     Endif
  108.     If (STRING008 == "E") Then
  109.         If (U_Cls == 0) Then
  110.             U_Cls = 1
  111.             Goto LABEL002
  112.         Endif
  113.         U_Cls = 0
  114.         :LABEL002
  115.         AnsiPos 21, 9
  116.         If (U_Cls == 0) Print "N"
  117.         If (U_Cls == 1) Print "Y"
  118.     Endif
  119.     If (STRING008 == "F") Then
  120.         AnsiPos 21, 10
  121.         KbdStuff U_Addr(0)
  122.         InputStr "_", STRING009, 5, 50, Mask_Ascii(), 0
  123.         U_Addr(0) = STRING009
  124.         AnsiPos 21, 10
  125.         Print "@X08.................................................."
  126.         AnsiPos 21, 10
  127.         Print "@X05" + U_Addr(0)
  128.     Endif
  129.     If (STRING008 == "G") Then
  130.         AnsiPos 21, 11
  131.         KbdStuff U_Addr(1)
  132.         InputStr "_", STRING009, 5, 50, Mask_Ascii(), 0
  133.         U_Addr(1) = STRING009
  134.         AnsiPos 21, 11
  135.         Print "@X08.................................................."
  136.         AnsiPos 21, 11
  137.         Print "@X05" + U_Addr(1)
  138.     Endif
  139.     If (STRING008 == "H") Then
  140.         AnsiPos 21, 12
  141.         KbdStuff U_Addr(2)
  142.         InputStr "_", STRING009, 5, 25, Mask_Ascii(), 0
  143.         U_Addr(2) = STRING009
  144.         AnsiPos 21, 12
  145.         Print "@X08........................."
  146.         AnsiPos 21, 12
  147.         Print "@X05" + U_Addr(2)
  148.     Endif
  149.     If (STRING008 == "I") Then
  150.         AnsiPos 21, 13
  151.         KbdStuff U_Addr(3)
  152.         InputStr "_", STRING009, 5, 10, Mask_Ascii(), 0
  153.         U_Addr(3) = STRING009
  154.         AnsiPos 21, 13
  155.         Print "@X08.........."
  156.         AnsiPos 21, 13
  157.         Print "@X05" + U_Addr(3)
  158.     Endif
  159.     If (STRING008 == "J") Then
  160.         AnsiPos 21, 14
  161.         KbdStuff U_Addr(4)
  162.         InputStr "_", STRING009, 5, 10, "0123456789", 0
  163.         U_Addr(4) = STRING009
  164.         AnsiPos 21, 14
  165.         Print "@X08.........."
  166.         AnsiPos 21, 14
  167.         Print "@X05" + U_Addr(4)
  168.     Endif
  169.     If (STRING008 == "K") Then
  170.         AnsiPos 21, 15
  171.         KbdStuff U_Addr(5)
  172.         InputStr "_", STRING009, 5, 15, Mask_Ascii(), 0
  173.         U_Addr(5) = STRING009
  174.         AnsiPos 21, 15
  175.         Print "@X08..............."
  176.         AnsiPos 21, 15
  177.         Print "@X05" + U_Addr(5)
  178.     Endif
  179.     If (STRING008 == "L") Then
  180.         AnsiPos 21, 16
  181.         KbdStuff U_Ver
  182.         InputStr "_", STRING009, 5, 25, Mask_Ascii(), 0
  183.         U_Ver = STRING009
  184.         AnsiPos 21, 16
  185.         Print "@X08........................."
  186.         AnsiPos 21, 16
  187.         Print "@X05" + U_Ver
  188.     Endif
  189.     If (STRING008 == "M") Then
  190.         If (U_Expert == 0) Then
  191.             U_Expert = 1
  192.             Goto LABEL003
  193.         Endif
  194.         U_Expert = 0
  195.         :LABEL003
  196.         AnsiPos 21, 17
  197.         If (U_Expert == 0) Print "N"
  198.         If (U_Expert == 1) Print "Y"
  199.     Endif
  200.     If (STRING008 == "N") Then
  201.         AnsiPos 21, 18
  202.         KbdStuff U_Trans
  203.         InputStr "_", STRING009, 5, 1, "AXCOFYGZHaxcofygzh", 0
  204.         U_Trans = Upper(STRING009)
  205.         AnsiPos 21, 18
  206.         Print "@X05" + U_Trans
  207.     Endif
  208.     Goto LABEL001
  209.     :LABEL004
  210.     PutUser
  211.     Cls
  212.  
  213. ;------------------------------------------------------------------------------
  214. ;
  215. ; Usage report (before postprocessing)
  216. ;
  217. ; ■ Statements used :
  218. ;
  219. ;    2       Cls
  220. ;    1       Color 
  221. ;    22      Goto 
  222. ;    21      Let 
  223. ;    43      Print 
  224. ;    26      If 
  225. ;    1       DispFile 
  226. ;    1       GetUser
  227. ;    1       PutUser
  228. ;    12      InputStr 
  229. ;    12      KbdStuff 
  230. ;    52      AnsiPos 
  231. ;
  232. ;
  233. ; ■ Functions used :
  234. ;
  235. ;    13      +
  236. ;    26      ==
  237. ;    18      !
  238. ;    4       Upper()
  239. ;    1       Chr()
  240. ;    1       Inkey()
  241. ;    8       Mask_Ascii()
  242. ;    1       PPEPath()
  243. ;
  244. ;------------------------------------------------------------------------------
  245. ;
  246. ; Analysis flags : WH
  247. ;
  248. ; W - Write user ■ 5
  249. ;     Program writes a user record. Although this may be normal for a
  250. ;     User Editor, it may also be a way to modify an account level.
  251. ;     ■ Search for : PUTUSER
  252. ;
  253. ; H - Read Password or Password History ■ 5
  254. ;     Program is reading the user's password or last password history
  255. ;     This may be ok for a password manager, but it is very suspect. Check!
  256. ;     ■ Search for : U_PWDHIST, U_PWD
  257. ;
  258. ;------------------------------------------------------------------------------
  259. ;
  260. ; Postprocessing report
  261. ;
  262. ;    0       For/Next
  263. ;    1       While/EndWhile
  264. ;    16      If/Then or If/Then/Else
  265. ;    0       Select Case
  266. ;
  267. ;------------------------------------------------------------------------------
  268. ;                 AEGiS Corp - Break the routines, code against the machines!
  269. ;------------------------------------------------------------------------------
  270.